package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhouh
 * @email zh69144@aliyun.com
 * @date 2022-02-03 16:18:42
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    Long[] getCatelogPath(Long cateLogId);

    List<CategoryEntity> getLevel1Catagories();

    void updateCascade(CategoryEntity category);

    void testCachEvit();
    /*
     * @author zhouheng
     * 获取1级分类下的二级三级分类
     * @date 2022/3/3 0003 18:50
     * @param null 
     * @return null
     */
    Map<String, List<Catelog2Vo>> getCatelogJson();
}

